package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 用户参与活动任务用户实体类
 *
 * @author: zhuhuaiqi
 */
@Getter
@Setter
@Document("user_participate_activity_task_info")
public class UserParticipateActivityTaskInfo extends EntityBase {
    @Indexed
    private String userId;
    @Indexed
    private String activityId;
    /**
     * 活动任务ID
     */
    @Indexed
    private String taskId;
    /**
     * 任务业务类型
     */
    private TaskBizType bizType;
    /**
     * 工作量,例如:分享数量,订单量,点赞数等
     */
    private Double quantity;
    /**
     * 销售额,单位分
     */
    private Integer sales;
    /**
     * 提成,单位分
     */
    private Integer commissions;
    /**
     * 等级
     */
    private Integer step;
    /**
     * 申请单位ID
     */
    private String organizerId;

}
